package com.sc.nft.entity.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
public class ImGetGroupMutedAccountVO {

    @ApiModelProperty("群组中被禁言的用户列表")
    private List<MutedAccountListDTO> mutedAccountList;

    @NoArgsConstructor
    @Data
    public static class MutedAccountListDTO {

        @ApiModelProperty("禁言到的时间（使用 UTC 时间，即世界协调时间）")
        @JSONField(format="unixtime")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date mutedUntil;

        @ApiModelProperty("用户 ID")
        private String memberAccount;
    }

}
